package com.shct10000.controller;


import com.shct10000.common.Result;
import com.shct10000.entity.Customer;
import com.shct10000.service.CustomerService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/customer")
public class CustomerController {
    @Resource
    private CustomerService customerService;


    @GetMapping("/selectALL")
    public Result selectALL(){
       List<Customer> list = customerService.selectALL();
       return Result.success(list);
    }


}
